export default [
  {
    path: '/sys/user',
    component: () => import('@/views/user'),
    meta: {
      breadcrumb: [{ to: '/dashoard', name: '首页' }, { name: '后台管理' }, { name: '用户列表' }]
    },
    props: route => {
      return {
        page: route.query.page ? Number(route.query.page) : 1
      }
    }
  },
  {
    path: '/sys/role',
    component: () => import('@/views/role'),
    meta: {
      breadcrumb: [{ to: '/dashoard', name: '首页' }, { name: '后台管理' }, { name: '角色列表' }]
    },
    props: route => {
      return {
        page: route.query.page ? Number(route.query.page) : 1
      }
    }
  },
  {
    path: '/sys/node',
    component: () => import('@/views/node'),
    meta: {
      breadcrumb: [{ to: '/dashoard', name: '首页' }, { name: '后台管理' }, { name: '权限列表' }]
    },
    props: route => {
      return {
        page: route.query.page ? Number(route.query.page) : 1
      }
    }
  }
]
